package com.chagee.store.operation.api.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.apache.commons.lang3.StringUtils;

/**
 * @ClassName IdentifyImageLocation  //类名称
 * @Description: //类描述
 * @Author: Jacky-zhan	//作者
 * @CreateDate: 2024/9/3 10:34	//创建时间
 * @UpdateUser: Jacky-zhan  //变更者
 * @UpdateDate: 2024/9/3 10:34	//更新时间
 * @UpdateRemark: //更新的信息
 * @Version: 1.0    //版本号
 */
@Getter
@AllArgsConstructor
public enum IdentifyImageLocationEnum {
	TEA_OUTLET("TEA_OUTLET", "出茶口"),
	SILO("SILO", "料仓"),
	OUTLET("OUTLET", "出风口"),
	PERISTALTIC_PUMP("PERISTALTIC_PUMP", "蠕动泵"),
	DOOR_FRAME_SLIDING_RAIL("DOOR_FRAME_SLIDING_RAIL", "门框滑轨"),
	TEA_DRINKING_MACHINE_SURFACE("TEA_DRINKING_MACHINE_SURFACE", "茶饮机表面"),
	;

	private final String type;
	private final String desc;

	public static IdentifyImageLocationEnum getByType(String type) {
		for (IdentifyImageLocationEnum value : values()) {
			if (StringUtils.equals(value.getType(), type)) {
				return value;
			}
		}
		return null;
	}

}
